package com.member.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.member.shop.domain.SysBizAgreement;

import java.util.List;

/**
 * 协议Service接口
 *
 * @author wangxin
 * @date 2024-01-03
 */
public interface ISysBizAgreementService extends IService<SysBizAgreement> {
    /**
     * 查询协议
     *
     * @param id 协议主键
     * @return 协议
     */
    public SysBizAgreement selectSysBizAgreementById(Long id);

    /**
     * 查询协议列表
     *
     * @param queryWrapper 协议
     * @return 协议集合
     */
    public List<SysBizAgreement> selectSysBizAgreementList(LambdaQueryWrapper<SysBizAgreement> queryWrapper);



    /**
     * 新增协议
     *
     * @param sysBizAgreement 协议
     * @return 结果
     */
    public int insertSysBizAgreement(SysBizAgreement sysBizAgreement);

    /**
     * 修改协议
     *
     * @param sysBizAgreement 协议
     * @return 结果
     */
    public int updateSysBizAgreement(SysBizAgreement sysBizAgreement);

    /**
     * 批量删除协议
     *
     * @param ids 需要删除的协议主键集合
     * @return 结果
     */
    public int deleteSysBizAgreementByIds(Long[] ids);

    /**
     * 删除协议信息
     *
     * @param id 协议主键
     * @return 结果
     */
    public int deleteSysBizAgreementById(Long id);

    /**
     * 查询协议列表(查询关联的商品表)
     *
     * @param sysBizAgreement 协议
     * @return 协议集合
     */
    List<SysBizAgreement> selectSysBizAgreementList(SysBizAgreement sysBizAgreement);

    //判断该商品是否被设置会员招商商品
    boolean hasExist(Long id);
}